<?php
/**
 * Auction:LoadCss.php
 * @author qqinxl
 * Tue Sep 25 09:18:14 GMT 2007
 * 
 * @category   Auction
 * @package  
 * @copyright  Copyright (c) qqinxl
 */
class ViewHelper_LoadCss {
	public function loadCss($_loadCssArray,$baseUrl,$type = 'screen, projection',$isIe = false){
		$html = '';
		if(empty($type)){
			$type = 'screen';
		}
		foreach ($_loadCssArray as $_cssFile){
			$str ="<link rel='stylesheet' type='text/css' media='".$type."' href='".$baseUrl."/public/styles/".$_cssFile."' />";
			$html.= $str;
		}
		if($isIe){
			$html .= "<!--[if IE]>".$html."<![endif]-->";
		}
		return $html;
	}
	public function test(){
		return 'html';
	}
}